/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.namabank.helpdesk.model;

import com.namabank.db.GlobalHibernate;
import com.namabank.helpdesk.dbobj.HDTB_STATUS;
import org.apache.commons.lang.StringEscapeUtils;

/**
 *
 * @author Nguyen Tran Hien
 */
public class HelpdeskStatusModel {
    public HelpdeskStatusModel(){}

    public static HDTB_STATUS getSMTB_DEPARTMENTById(String id){
        String qry = "from HDTB_STATUS where STATUS_ID = '" + StringEscapeUtils.escapeSql(id) + "'";
        return (HDTB_STATUS)GlobalHibernate.openSession().createQuery(qry).uniqueResult();
    }

}
